package homework.Game;
/**
 * 士兵类
 */
public class Soldier extends Professional implements Defend{
    public Soldier(){

    }
    public Soldier(String name, int level){
        super(name,level);
    }
    /**抵挡的方法*/
    public void defend() {
        System.out.println(
                "我是等级" + this.getLevel() + "的" + this.getName() + "我可以抵挡攻击");
    }
}
